-- GENERATED SPELL FOR [Horde Ranger] --


function spell0_26801(pUnit, Event) --@Incendiary Shot,n/a--
pUnit:FullCastSpellOnTarget(47777,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_26801', 13000, 1)
end

function spell1_26801(pUnit, Event) --@Incendiary Shot,n/a--
pUnit:FullCastSpellOnTarget(56933,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_26801', 13000, 1)
end

function spell2_26801(pUnit, Event) --@Rapid Shot,Self--
pUnit:FullCastSpellOnTarget(48191,pUnit)
pUnit:RegisterEvent('Sorts_26801', 8000, 1)
end

function spell3_26801(pUnit, Event) --@Shoot,n/a--
pUnit:FullCastSpellOnTarget(15620,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_26801', 667, 1)
end

function spell4_26801(pUnit, Event) --@Shoot,n/a--
pUnit:FullCastSpellOnTarget(22907,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_26801', 553, 1)
end

function Sorts_26801(pUnit, Event)
local choix_sorts_26801 = math.random(0, 4)
if choix_sorts_26801 == 0 then
pUnit:RegisterEvent('spell0_26801', 1, 1)
end
if choix_sorts_26801 == 1 then
pUnit:RegisterEvent('spell1_26801', 1, 1)
end
if choix_sorts_26801 == 2 then
pUnit:RegisterEvent('spell2_26801', 1, 1)
end
if choix_sorts_26801 == 3 then
pUnit:RegisterEvent('spell3_26801', 1, 1)
end
if choix_sorts_26801 == 4 then
pUnit:RegisterEvent('spell4_26801', 1, 1)
end
end

function mob26801_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_26801', math.random(1500, 3000), 1)
end

function mob26801_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob26801_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob26801_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(26801, 1, 'mob26801_Action')
RegisterUnitEvent(26801, 2, 'mob26801_Leave')
RegisterUnitEvent(26801, 3, 'mob26801_Kill')
RegisterUnitEvent(26801, 4, 'mob26801_Die')
